#ifndef GAMELOBBYDIALOG_H
#define GAMELOBBYDIALOG_H

#include <QTcpServer>
#include <QDialog>
#include "gamesettings.h"

namespace Ui {
class GameLobbyDialog;
}

class GameLobbyDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit GameLobbyDialog(QWidget *parent = 0);
    ~GameLobbyDialog();
    void InitializeLobby();

private:
    void UpdatePlayers();
    void SwitchTeam(int newteam);

private slots:
    void on_pushButton_2_clicked();
    void on_pushButton_clicked();
    void on_buttonTeam1_clicked();
    void on_buttonTeam2_clicked();
    void PlayerConnected();
    void PlayerDisconnected();

    void on_pushButton_3_clicked();

private:
    Ui::GameLobbyDialog *ui;

    GameSettings Settings;
};

#endif // GAMELOBBYDIALOG_H
